package com.joysuch.wwyt.bp.repository;

import com.joysuch.wwyt.bp.entity.BpEmergencyContingencyPlans;
import com.joysuch.wwyt.bp.entity.BpEmergencyPeople;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;

import java.util.List;

public interface BpEmergencyPeopleDao extends JpaRepository<BpEmergencyPeople, Long>, QuerydslPredicateExecutor<BpEmergencyPeople> {

    public Page<BpEmergencyPeople> findAll(Specification<BpEmergencyPeople> spec, Pageable pageable);


    List<BpEmergencyPeople> findByUserId(Long userId);
}
